package com.example.backend.mapper;

import com.example.backend.entity.Admin;
import com.example.backend.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface AdminMapper {
    //用户登录查询
    @Select("select * from admins where adminName=#{name} and password=#{password}")
    Admin adminLogin(@Param("name") String name, @Param("password") String password);
}
